home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / ste / mega / speed_sw.arc / SW_16_OF.S < prev    next >
Text File  |  1992-02-11  |  2KB  |  53 lines

  1. *****************************************
  2. *       Speed-SWitcher MSTE  v1.1       *
  3. *   by Daniel Eriksson of Delta Force.  *
  4. *                                       *
  5. *           16 MHz,  cache OFF          *
  6. *                                       *
  7. *       First edited:  1991-12-25       *
  8. *       Last edited :  1992-02-11       *
  9. *                                       *
  10. *      This is a shareware program.     *
  11. *     If you like it and use it then    *
  12. * please contact me at any of the below *
  13. *         mentioned addresses!          *
  14. *     [only legal stuff of course!]     *
  15. *                                       *
  16. * Written and developed in Devpac v2.25 *
  17. *****************************************
  18.  
  19.  
  20. ; The program is totally position independent (pc-relative).
  21.  
  22. * Run switching-routine in supervisor mode *
  23.     pea    switch(pc)
  24.     move.w    #38,-(sp)
  25.     trap    #14            ; Supexec (XBIOS)
  26.     lea    6(sp),sp
  27.  
  28. * Write switching-text *
  29.     pea    sw_text(pc)
  30.     move.w    #9,-(sp)
  31.     trap    #1            ; Cconws (GEMDOS)
  32.     lea    6(sp),sp
  33.  
  34. * Terminate *
  35.     clr.w    -(sp)            ; Pass a zero to parent-process
  36.     move.w    #$4c,-(sp)
  37.     trap    #1            ; Pterm (GEMDOS)
  38.  
  39. * The switching routine *
  40. switch:
  41.     bset.b    #1,$ffff8e21.w        ; Set processor to 16 MHz
  42.     bclr.b    #0,$ffff8e21.w        ; Disable cache-memory
  43.     rts
  44.  
  45. * Here's the DATA-segment *
  46.     section    data
  47. sw_text    dc.b    13,10,"Speed-SWitcher MSTE  v1.1  1992-02-11",13,10
  48.     dc.b    "by Daniel Eriksson of Delta Force.",13,10
  49.     dc.b    "Computer now switched to 16 MHz and cache OFF!",13,10
  50.     dc.b    13,10,0
  51.  
  52.     END
  53.